package com.zezer.site.util;

public final class StringUtils {

	public static boolean isNullorEmpty(String str) {
		return isNullorEmpty(str, true);
	}

	public static boolean isNullorEmpty(String str, boolean trim) {
		if (str == null || str.isEmpty()) {
			return true;
		}
		if (trim) {
			return str.trim().isEmpty();
		}
		return false;
	}
}
